package main

import (
	"fileService/controller"
	"fileService/middlewares"
	"github.com/gin-gonic/gin"
)

func main()  {
	r := gin.Default()
	r.Use(middlewares.Cors())
	r.POST("/upload/uploadFile", controller.UploadFile)
	r.POST("/upload/uploadStream", controller.UploadStream)
	r.POST("/upload/uploadChunk", controller.UploadChunk)
	r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}
